package com.ykl.utils;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

public class UrlEncoderUtils {
    public static String encode(String input) {
        try {
            return URLEncoder.encode(input, "UTF8");
        } catch (UnsupportedEncodingException ex) {
            return input;
        }
    }
}